/**   
 * 项目名：五位一体化工安全信息平台
 * 日期：    2019-12-07 13:44:19  
 * Copyright (c) 2015- joysuch-版权所有     
 */
package com.joysuch.wwyt.bp.service;

import com.joysuch.wwyt.bp.entity.BpEmergencyMaterial;

import com.joysuch.wwyt.bp.bean.BpEmergencyMaterialDetailBean;
import com.joysuch.wwyt.bp.bean.BpEmergencyMaterialEditBean;
import com.joysuch.wwyt.bp.bean.BpEmergencyMaterialListBean;
import static com.joysuch.wwyt.bp.bean.BpEmergencyMaterialListBean.Search;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface BpEmergencyMaterialService {

    public BpEmergencyMaterial add(BpEmergencyMaterialEditBean entity) throws Exception;

    void update(BpEmergencyMaterialEditBean entity) throws Exception;

    Page<BpEmergencyMaterialListBean> findByPage(Pageable page, Search condition);
    
    void delete(Long id) ;

    BpEmergencyMaterialDetailBean getById(Long id);
    
    BpEmergencyMaterial findById(Long id);
}
